import store from '@/store/store';
import layout from '../components/layout.vue';
export default [
  {
    path: '/moldManagement',
    name: 'moldLedger',
    component: layout,
    children: [
      {
        path: '/moldManagement/mdLink',//设备关联
        name: 'mdLink ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/moldManagement/mdLink/index.vue'),
      },
       {
        path: '/moldManagement/test',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/test'),
      },
      {
        path: '/moldManagement/test1',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/test1'),
      }
    ]
  },
  {
    path: '/scheduling',
    name: 'scheduling',
    component: layout,
    children: [
      {
        path: '/scheduling/dispatchManagement',//设备关联
        name: 'dispatchManagement ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/scheduling/dispatchManagement/index.vue'),
      },
      {
        path: '/scheduling/dispatchManagementDetail',//设备关联
        name: 'dispatchManagementDetail ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/scheduling/dispatchManagementDetail/index.vue'),
      },
    ]
  },
  {
    path: '/production',
    name: 'production',
    component: layout,
    children: [
      {
        path: '/production/productionPlan',//设备关联
        name: 'productionPlan',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/production/productionPlan/index.vue'),
      },
      {
        path: '/production/productionPlanDetail',//设备关联
        name: 'productionPlanDetail',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/production/productionPlanDetail/index.vue'),
      },
    ]
  },

  //基础菜单
  {
    path: '/dataBasic',
    name: 'moldLedger',
    component: layout,
    children: [
      {
        path: '/dataBasic/equipment',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/equipment'),
      },
      {
        path: '/dataBasic/tooling',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/tooling'),
      },
      {
        path: '/dataBasic/materialMaintenance',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/materialMaintenance'),
      }, {
        path: '/dataBasic/product',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/product'),
      },{
        path: '/dataBasic/materialBom',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/materialBom'),
      },{
        path: '/dataBasic/processRoute',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/processRoute'),
      }, {
        path: '/dataBasic/productBOM',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/productBOM'),
      }, {
        path: '/dataBasic/productionLine',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/productionLine'),
      },{
        path: '/dataBasic/process',
        name: 'test ',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/dataBasic/process'),
      },
    ]
  }
]
